package com.gxa.insurance.pojo;



import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

import java.io.Serializable;

import java.util.Date;
import java.util.List;


/**
 * @author shen gang
 * @date 2022/6/6
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@Component
public class DriverComments implements Serializable {
    @ApiModelProperty(name = "id" ,value = "主键编号" ,hidden = true)
    private Integer id;
    @ApiModelProperty(name = "orderNumber",value = "订单编号")
    private String orderNumber;
    @ApiModelProperty(name = "allStar",value = "总评价")
    private Integer allStar;
    @ApiModelProperty(name = "remark",value = "备注")
    private String remark;
    @ApiModelProperty(name = "evaluateTime",value = "评价时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
//    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date evaluateTime;
    @ApiModelProperty(name = "choiceEvaluation",value = "可选评价")
    private String choiceEvaluation;


    @ApiModelProperty(name = "opreation",value = "操作")
    private Boolean opreation;

    List<Order> orders;

}
